export default {
	onShow(){
		if(!this.vuex_token){
			console.log(333333333333,'^^^^^^^^^^^^');
			let that = this
			uni.login({
				provider: 'toutiao',
				success: function(loginRes) {
					
					that.$u.api.login({
						appletId: that.vuex_appletId,
						code: loginRes.code
					}).then(res => {
						that.$u.vuex('vuex_token', res.data.token);
						
					})
					
				}
			});
			
		}
	},
	methods: {
		
		checkAuth() {
			
			
		},
		login() {
			let that = this;
			uni.getUserProfile({
				provider: '',
				success(res) {
					console.log(res, 337777222);
					that.$u.vuex('vuex_userInfo', res.userInfo);
					 that.curUserInfo = res.userInfo;
				}
			});

		}
	},
}
